<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019-01-30
 * Time: 10:32
 */

namespace app\admin\controller;


use app\common\controller\AdminBase;
use app\common\model\Demandcardingm;

class Demandcarding extends AdminBase
{
    /**
     * 需求列表
     */
    public function index($page = 1)
    {
        $list = Demandcardingm::demandList($page);
        return $this->fetch('index', ['list' => $list]);
    }

    /**
     * 需求详情
     */
    public function detail($id)
    {
        $detail  = Demandcardingm::detail($id);
        return $this->fetch('detail', ['detail' => $detail]);
    }
}